import java.io.*;
import java.util.ArrayList;
import java.util.Scanner;

public class Parser_easy {
	static String filename = "E:/Java/Tasks/Text_for_tasks/Text_for_tasks.txt";
	public static void Parser_Easy() {
		try {
			FileReader fr = new FileReader (filename);
			Scanner scan = new Scanner(fr);
			ArrayList<String> word = new ArrayList<String>();
			while (scan.hasNext()) {
			       word.add(scan.next());
			}
			
			show(word);
			
		} catch (FileNotFoundException e) {

			System.err.println (e);
		}
		
	}
	   public static void show(ArrayList<String> array){
	        System.out.println("Matrix : ");
	                for (int i = 0; i < array.size(); i++) {
	                System.out.print(i + " "+ array.get(i) + " ");
	                System.out.println();
	                }
	            }
	
public static void main(String[] args){
	Parser_easy.Parser_Easy();
}	

}
